c program to count digits in a number